package org.example.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class MovieController {


    @RequestMapping("/")
    public String goIndexPage()
    {
        return "index";

    }
    @RequestMapping("/detail/{right}/{id}")
    public String goMoviePage(@PathVariable("right") String right,@PathVariable("id") int id)
    {
        return "detail/"+right+"/"+id;

    }

    @RequestMapping("/login")
    public String goLoginPage()
    {
        return "login";

    }


}
